<template>
    <div> class="nav">
        <router-link to="/">首页=</router-link>
        <div v-for="item in navData">
          <router-link :to="item.path">{{item.title}}</router-link>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>
import { navData } from '@/untils/nav'

export default {
    name: 'App',
    components: {
        // step2: 注册组件
       //  Event,
    },
    setup()   {
        return  {
           navData
        }
    } 
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

.nav {
    disolay:
}
</style>
